package com.blocks57.homework.repository;

import com.blocks57.homework.model.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.query.Param;

import java.util.Optional;

/**
 * UserRepository
 *
 * @author Tom at 2023-10-29
 */
public interface UserRepository extends JpaRepository<User, Long> {
    Optional<User> findByUsername(@Param("username") String username);
}
